package cn.z2huo.knowledge.basic.bigdecimal;

import java.math.BigDecimal;

public class Test {

	public static void main(String[] args) {
		BigDecimal bigDecimal = new BigDecimal("2");
		System.out.println(bigDecimal);
		System.out.println(bigDecimal.toPlainString());
		System.out.println(bigDecimal.toEngineeringString());
		System.out.println();

		bigDecimal = new BigDecimal("2.222");
		System.out.println(bigDecimal);
		System.out.println(bigDecimal.toPlainString());
		System.out.println(bigDecimal.toEngineeringString());
	}
}
